package com.zhiyou100.springbootreidsquartz.util;

import org.springframework.data.redis.core.ZSetOperations;

public class MyZset implements ZSetOperations.TypedTuple<Object> {
    Object value;//数据
    double score;//值

    public MyZset(Object value, double score) {
        this.value = value;
        this.score = score;
    }

    @Override
    public Object getValue() {
        return value;
    }

    @Override
    public Double getScore() {
        return score;
    }

    @Override
    public int compareTo(ZSetOperations.TypedTuple<Object> o) {
        return 0;
    }
}
